Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hono-base): don't use Symbol for COMPOSED_HANDLER #3773

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

yusukebe
Copy link
Member

@yusukebe yusukebe commented Dec 26, 2024

Fixes #3760

This PR resolves the problem described in #3760. It uses a string value for COMPOSED_HANDLER instead of a Symbol. We should add a test for a fix change, but in this PR, it's challenging to reproduce the problem in #3760, so it doesn't include a test.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Copy link

Bundle size check

main (b1335f9) #3773 (14b02c3) +/-
Bundle Size (B) 18,772B 18,771B -1B
Bundle Size (KB) 18.33K 18.33K 0K

Compiler Diagnostics

main (b1335f9) #3773 (14b02c3) +/-
Files 256 257 1
Lines 115,031 115,032 1
Identifiers 111,978 111,978 0
Symbols 243,490 243,492 2
Types 204,698 204,697 -1
Instantiations 3,044,219 3,044,219 0
Memory used 419,317K 420,042K 725K
I/O read 0.03s 0.02s -0.01s
I/O write 0s 0s 0s
Parse time 0.66s 0.66s 0s
Bind time 0.27s 0.27s 0s
Check time 5.5s 5.58s 0.08s
Emit time 0s 0s 0s
Total time 6.43s 6.5s 0.07s

Reported by octocov

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.72%. Comparing base (b1335f9) to head (faadeb1).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3773    +/-   ##
========================================
  Coverage   91.72%   91.72%            
========================================
  Files         159      160     +1     
  Lines       10175    10177     +2     
  Branches     2991     2882   -109     
========================================
+ Hits         9333     9335     +2     
  Misses        841      841            
  Partials        1        1            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yusukebe
Copy link
Member Author

Hey @usualoma. Can you review this?

@yusukebe
Copy link
Member Author

I think merging this without waiting for others to review is OK. If you have any suggestions, feel free to create a PR to resolve them. I'll merge now.

@yusukebe yusukebe merged commit 5ca3825 into main Dec 28, 2024
16 checks passed
@yusukebe yusukebe deleted the fix/dont-use-symbol-composed-handler branch December 28, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

COMPOSED_HANDLER mismatch when using different version of hono
1 participant